package com.jzr.medical.db1.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.jzr.medical.common.LayEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 角色和菜单关系表
 * </p>
 *
 * @author henry
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TRoleMenuRef对象", description="角色和菜单关系表")
public class TRoleMenuRef extends LayEntity<Integer> {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_role_menu_ref";
    public static final String Id_ = "id";
    public static final String MenuId_ = "menu_id";
    public static final String RoleId_ = "role_id";
    public static final String Status_ = "status";
    public static final String Remark_ = "remark";
    public static final String UpdateTime_ = "update_time";
    public static final String UpdateBy_ = "update_by";


    @ApiModelProperty(value = "角色菜单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "菜单id")
    @TableField("menu_id")
    private Integer menuId;

    @ApiModelProperty(value = "角色id")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "状态1=有效，0=无效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;


}
